import Vue from 'vue'
import App from './App.vue'
import server from  './Utils/server.js'
import router from './router/index.js'
import store from './store/index.js'

import {
  CountDown,
  List,NavBar,Sidebar, 
  SidebarItem,Grid, GridItem,
  Icon,Cell, CellGroup,Swipe, SwipeItem,AddressEdit, 
  GoodsAction, GoodsActionIcon, GoodsActionButton,ActionSheet,Search,
  DropdownMenu, DropdownItem ,
  Form,Field ,Popup ,
  Checkbox, CheckboxGroup ,Stepper ,SwipeCell,Card,Button,SubmitBar,Divider,Sticky,
  Dialog,Area,Cascader,Switch,AddressList ,Tab, Tabs,Loading,PullRefresh ,IndexBar, IndexAnchor,Empty
} from "vant"


// 引入element ui
// 加载 element 组件库
import ElementUI from 'element-ui'
// 加载 element 组件库的样式
import 'element-ui/lib/theme-chalk/index.css'
 
// 全局注册 element 组件库
Vue.use(ElementUI)
Vue.use(CountDown)
Vue.use(List);
Vue.use(NavBar);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Icon);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(AddressEdit);
Vue.use(GoodsAction);
Vue.use(GoodsActionIcon);
Vue.use(GoodsActionButton);
Vue.use(ActionSheet);
Vue.use(Search);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Form);
Vue.use(Field );
Vue.use(Popup );
Vue.use(Checkbox );
Vue.use(CheckboxGroup );
Vue.use(Stepper);
Vue.use(SwipeCell);
Vue.use(Card);
Vue.use(Button);
Vue.use(SubmitBar);
Vue.use(Divider);
Vue.use(Sticky);
Vue.use(Dialog);
Vue.use(Area);
Vue.use(Cascader);
Vue.use(Switch);
Vue.use(AddressList );
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Loading);
Vue.use(PullRefresh);
Vue.use(IndexBar);
Vue.use(IndexAnchor);
Vue.use(Empty);


Vue.config.productionTip = false;
Vue.prototype.$serve = server
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
